import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from 'axios'


//引入element-UI
// import element from './element/element.js'
import ElementUI from 'element-ui';
//视频播放的Css文件
import 'video.js/dist/video-js.css'

import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)

// 将全局的echarts对象挂载到Vue的原型对象上
// 别的组件中 this.$echarts
Vue.prototype.$echarts = window.echarts

Vue.prototype.$http= axios

// axios.defaults.baseURL = 'http://192.168.0.116:5001/'
axios.defaults.baseURL = 'https://zzxfkme.icu:5001/'

Vue.config.productionTip = false;
//绑定类名
import getUser from './utils/user.js'
import getAblum from './utils/ablum.js'
import getImage from './utils/image.js'
import getShare from './utils/shared.js'
import getSmart from './utils/smartAblum.js'
Vue.prototype.$userClass = new getUser();
Vue.prototype.$ablumClass = new getAblum();
Vue.prototype.$imageClass = new getImage();
Vue.prototype.$shareClass = new getShare();
Vue.prototype.$smartClass = new getSmart();

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
